/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.api.route;

/**
 * 别名工具类
 *
 * @author zhangbi617
 * @date 2017-06-28
 */
public class AliasUtils {
    
    /**
     * 搜索云alias前缀
     */
    public static final String ALIAS_PREFIX = "searchcloud_";

    /**
     * 根据索引名转换为alias名
     *
     * @param indexName
     * @return
     */
    public static String convertAliasName(String indexName) {
        return ALIAS_PREFIX + indexName;
    }
}
